<%@ page language="java" contentType="text/html; charset=UTF-8" import="com.agentlab.imitation.common.*"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/share/taglib.jsp"%>
<%
	String path = request.getContextPath();
%>
<html>
	<head>
		<title>模拟填报 - 重庆模拟志愿填报系统</title>
		<link href="<%=path%>/style/imitation.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript"
			src="<%=path%>/script/jquery-1.3.2.min.js"></script>
		<meta http-equiv="Content-Type" content="text/html; charset=GB2312">

		<script language="javascript" src="<%=path%>/images/comm_fns.js"></script>
		<script language="JavaScript" type="text/JavaScript">
<!--
var browser = getBrowser();
//var Opacity = 0;
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function openDialog(position)
{
	dialogHeight = 436;
	dialogWidth  = 750;
	oDiv = $('dialog');
	//oDiv.style.visibility = 'visible';	
	oDiv.style.display = 'block';
	oDiv.style.left = document.body.scrollLeft + (document.body.clientWidth - dialogWidth) / 2;
	
	if (document.body.offsetHeight>dialogHeight){
		oDiv.style.top = document.body.scrollTop + (document.body.clientHeight - dialogHeight) / 2;	
	} else {
		oDiv.style.top = document.body.scrollTop;
	}
	showDialogBg();
	$('position').value   = position;
	$('from').value   = 'adv';
	
}

function closeDialog()
{
	//$('dialog').style.visibility = 'hidden';
	$('dialog').style.display = 'none';
	hideDialogBg();
}

function dialogDrag(ID, event)
{
	var oDialog = $(ID);
	setOpacity(ID, 80);
	
	oDialog.setCapture ? oDialog.setCapture() : function(){};
	var currX = event.clientX;
	var currY = event.clientY;	
	oDialog.onmousemove = dialogMove;
	oDialog.onmouseup   = dialogStop;
	function dialogMove()
	{
		var offsetX = event.clientX - currX;
		var offsetY = event.clientY - currY;		
		oDialog.style.left = offsetX + parseInt(oDialog.style.left);
		oDialog.style.top  = offsetY + parseInt(oDialog.style.top);		
		currX = event.clientX;
		currY = event.clientY;	
	}
	function dialogStop()
	{
		oDialog.onmousemove = function() {return false};
		oDialog.onmouseup = function() {return false};
		oDialog.releaseCapture ? oDialog.releaseCapture() : function(){};
		setOpacity(ID, 100);
	}
}

function showDialogBg()
{
	oDiv = $('dialogBg');
	
	oDiv.oncontextmenu = function () {return false;};
	oDiv.style.visibility = "visible";
	
	setOpacity('dialogBg', 50);

	//timerId = window.setInterval("dialogBgShade()", 100);
	
	oDiv.style.height = document.body.scrollHeight;
	oDiv.style.width  = document.body.scrollWidth;		
}

function hideDialogBg()
{
	dialogBgId = 'dialogBg';
	$(dialogBgId).style.visibility = "hidden";
}



function mySubmit(myForm)
{
	oObj = myForm.prescore;

	if (isNaN(parseInt(oObj.value)) || parseInt(oObj.value)<100 || parseInt(oObj.value)>900)
	{
		alert('请输入正确的预估分！');
		oObj.focus();
		return false;
	}
	return true;
}


//-->
</script>
	</head>
	<body leftmargin="0" bgcolor="#FFFFFF" marginwidth="0">
		<jsp:include page="dialog.jsp" />
		<center>

			<jsp:include page="/head.jsp" />


			<table border="0" cellpadding="0" cellspacing="0" width="950">
				<tbody>
					<tr>
						<td align="center" bgcolor="#B1DE9B">
							<table border="0" cellpadding="0" cellspacing="0">
								<tbody>
									<tr>
										<td>
											<jsp:include page="user_info.jsp" />
											<table border="0" cellpadding="0" cellspacing="0" width="930">
												<tbody>
													<tr>
														<td background="<%=path%>/images/mn_11.gif" height="27">
															<table border="0" cellpadding="0" cellspacing="0">
																<tbody>
																	<tr>
																		<td>
																			&nbsp;
																		</td>
																		<td style="padding-top: 9px;" align="center"
																			background="<%=path%>/images/mn_13.gif" height="27"
																			width="102">
																			<a href="<%=path%>/front/wishlist_simpleCard.action"
																				class="a04">快捷模式</a>
																		</td>
																		<td width="3"></td>
																		<td style="padding-top: 4px; padding-left: 7px;"
																			align="center"
																			background="<%=path%>/images/mn_12.gif" height="27"
																			width="95">
																			<b>高级模式</b>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
													<tr>
														<td style="padding-right: 12px;" align="right"
															bgcolor="#FFFFFF" height="33" valign="bottom">
															<%--
															<a href="http://exam.edu.sina.com.cn/zhiyuan/zhiyuan.php?style=input"
																target="_blank"><img src="<%=path%>/images/mn_14.gif" border="0" height="19" width="88">
															</a>
															 --%>
														</td>
													</tr>
													<tr>
														<td bgcolor="#FFFFFF">

															<c:forEach var="pc_index" begin="2" end="4" step="1">
																<!-- 批次循环 -->
																<!-- 批次 开始 -->
																<table border="0" cellpadding="0" cellspacing="15"
																	width="100%">
																	<tbody>
																		<tr>
																			<td>
																				<table bgcolor="#89C975" border="0" cellpadding="0"
																					cellspacing="0" width="100%">
																					<tbody>
																						<tr>
																							<td align="center" bgcolor="#B1DE9B" width="14%">
																								<b style="color: #274401">本科<c:if	test="${pc_index==2}">一</c:if>
																																<c:if test="${pc_index==3}">二</c:if>
																																<c:if test="${pc_index==4}">三</c:if>批</b>
																							</td>
																							<td width="86%">
																								<!-- 本批次院校展示 开始 -->
																								<c:forEach var="yxzyxh_index" begin="1" end="<%=CommonConstant.NUM_YX %>" step="1">
																									<!-- 院校循环 -->
																									<!--  志愿 开始 -->
																									<c:set var="is_exist" value="false" scope="page" />
																									<!--  是否有院校存在 -->
																									<c:set var="yxmc_writed" value="false" scope="page" />
																									<c:set var="yxdh" value="" scope="page" />
																									<!--  本志愿院校代号 -->
																									<c:if test="${!empty wishs}">
																										<c:forEach items="${wishs}" var="entry">
																											<c:if test="${entry.id.pc==pc_index and entry.id.yxzyxh==yxzyxh_index and yxmc_writed==false}">
																												<!-- 填报了本志愿 -->
																												<c:set var="is_exist" value="true" scope="page" />
																												<c:set var="yxdh" value="${entry.yxdh}" scope="page" />
																												<c:set var="yxmc_writed" value="true" scope="page" />
																												<table border="0" cellpadding="0" cellspacing="1" width="100%">
																													<tbody>
																														<tr align="right" bgcolor="#B1DE9B">
																															<td height="20">
																																<table border="0" cellpadding="0" cellspacing="0" width="90%">
																																	<tbody>
																																		<tr>
																																			<td align="center" width="40%">
																																				<b style="color: #274401">第
																																					<c:if test="${yxzyxh_index==1}">一</c:if>
																																					<c:if test="${yxzyxh_index==2}">二</c:if>
																																					<c:if test="${yxzyxh_index==3}">三</c:if>
																																					<c:if test="${yxzyxh_index==4}">四</c:if>
																																					<c:if test="${yxzyxh_index==5}">五</c:if>
																																					<c:if test="${yxzyxh_index==6}">六</c:if>
																																					<c:if test="${yxzyxh_index==7}">七</c:if>
																																					<c:if test="${yxzyxh_index==8}">八</c:if>
																																					志愿</b>
																																			</td>
																																			<td style="padding-right: 5px;"
																																				align="right" width="60%">
																																				<a href="<%=path%>/front/wishlist_changeSort.action?pc=<c:out value='${pc_index}'/>&amp;action=up&amp;yxzyxh=<c:out value='${yxzyxh_index}'/>">
																																				<c:choose>
																																			    <c:when test="${yxzyxh_index==1}">
																																			      <img src="<%=path%>/images/mn_20.gif" border="0" height="19" width="86">
																																			    </c:when>
																																			    <c:otherwise>
																																			      <img src="<%=path%>/images/mn_18.gif" border="0" height="19" width="86">
																																			    </c:otherwise>   
																																				</c:choose>
																																				</a>
																																				
																																				<a href="<%=path%>/front/wishlist_changeSort.action?pc=<c:out value='${pc_index}'/>&amp;action=down&amp;yxzyxh=<c:out value='${yxzyxh_index}'/>">
																																					<c:choose>
																																				    <c:when test="${yxzyxh_index==6}"> <%--CommonConstant.NUM_YX  --%>
																																				      <img src="<%=path%>/images/mn_21.gif" border="0" height="19" width="86">
																																				    </c:when>
																																				    <c:otherwise>
																																				      <img src="<%=path%>/images/mn_19.gif" border="0" height="19" width="86">
																																				    </c:otherwise>   
																																					</c:choose>
																																				</a>
																																			</td>

																																		</tr>
																																	</tbody>
																																</table>
																															</td>
																														</tr>
																													</tbody>
																												</table>

																												<table border="0" cellpadding="0" cellspacing="1" width="100%">
																													<tbody>
																														<tr align="center" bgcolor="#C6E7BA">
																															<td rowspan="2" width="45%">
																																&nbsp;
																															</td>
																															<td rowspan="2" width="15%">
																																<b style="color: #274401">报考人数<br>
																																</b>
																															</td>
																															<td colspan="3" bgcolor="#C6E7BA"
																																height="20">
																																<b style="color: #274401">历年录取分数线</b>
																															</td>
																															<td rowspan="2" width="10%">
																																<b style="color: #274401">操作</b>
																															</td>
																														</tr>
																														<tr align="center" bgcolor="#C6E7BA">
																															<td height="20" width="10%">
																																<b style="color: #274401">2007</b>
																															</td>
																															<td width="10%">
																																<b style="color: #274401">2008</b>
																															</td>
																															<td width="10%">
																																<b style="color: #274401">2009</b>
																															</td>
																														</tr>
																														<!-- 志愿 院校名称  开始-->
																														<tr align="center" bgcolor="#EBF8E7">
																															<td style="padding-left: 5px;"
																																align="center" height="20">
																																<b><c:out value="${entry.yxmc}" />
																																</b>
																															</td>
																															<td align="center">
																																<b style="color: #274401">-- </b>
																															</td>
																															<td align="center">
																																<b style="color: #274401">--</b>
																															</td>
																															<td align="center">
																																<b style="color: #274401">--</b>
																															</td>
																															<td align="center">
																																<b style="color: #274401">--</b>
																															</td>
																															<td align="center">
																																<a href="<%=path%>/front/wishlist_yx.action?position=<c:out value='${pc_index}'/><c:out value='${yxzyxh_index}'/>0&from=adv"><img
																																		src="<%=path%>/images/mn_17.gif"
																																		border="0" height="19" width="62">
																																</a>
																															</td>
																														</tr>
																														<!-- 志愿 院校名称  结束-->
																														<c:forEach var="zyzyxh_index" begin="1"
																															end="<%=CommonConstant.NUM_ZY %>" step="1">
																															<!-- 专业循环 -->
																															<!-- 志愿 专业  开始 -->
																															<c:set var="zy_exist" value="false" scope="page" />
																															<c:forEach items="${wishs}" var="entry">
																																<c:if
																																	test="${entry.id.pc==pc_index and entry.id.yxzyxh==yxzyxh_index and entry.id.zyzyxh==zyzyxh_index}">
																																	<tr align="center" bgcolor="#FFFFFF">
																																		<td style="padding-left: 5px;"
																																			align="center" height="20">
																																			<c:out value="${entry.zymc}" />
																																		</td>
																																		<td align="center">
																																			&nbsp;
																																		</td>
																																		<td align="center">
																																			<font color="#328408">--</font>
																																		</td>
																																		<td align="center">
																																			<font color="#328408">--</font>
																																		</td>
																																		<td align="center">
																																			<font color="#328408">--</font>
																																		</td>
																																		<td align="center">
																																			<a href="<%=path%>/front/wishlist_yxzySingle.action?yxdh=<c:out value='${yxdh}'/>&from=adv&position=<c:out value='${pc_index}'/><c:out value='${yxzyxh_index}'/><c:out value='${zyzyxh_index}'/>"><img src="<%=path%>/images/mn_17.gif"
																																				border="0" height="19" width="62"></a>
																																		</td>
																																	</tr>
																																	<c:set var="zy_exist" value="true"
																																		scope="page" />
																																</c:if>
																															</c:forEach>
																															<c:if test="${zy_exist == false}">
																																<!-- 本专业位置上没有选择 -->
																																<tr align="center" bgcolor="#FFFFFF">
																																	<td style="padding-left: 5px;" valign="center" align="center" height="20">
																																		<a href="<%=path%>/front/wishlist_yxzySingle.action?yxdh=<c:out value='${yxdh}'/>&amp;from=adv&position=<c:out value='${pc_index}'/><c:out value='${yxzyxh_index}'/><c:out value='${zyzyxh_index}'/>">
																																		<img width="86" height="19" border="0" src="<%=path%>/images/mn_16.gif"> 
																																		</a>
																																	</td>
																																	<td align="center"> &nbsp; </td>
																																	<td align="center">
																																		<font color="#328408">--</font>
																																	</td>
																																	<td align="center">
																																		<font color="#328408">--</font>
																																	</td>
																																	<td align="center">
																																		<font color="#328408">--</font>
																																	</td>
																																	<td align="center">
																																		<%-- <img src="<%=path%>/images/mn_17.gif" border="0" height="19" width="62"> --%>
																																	</td>
																																</tr>
																															</c:if>
																															<!-- 志愿 专业  结束 -->
																														</c:forEach>
																														<!-- 专业循环 -->

																													</tbody>
																												</table>

																											</c:if>
																										</c:forEach>
																									</c:if>
																									<c:if test="${is_exist == false}">
																										<!-- 没有院校存在 ，只加一行-->
																										<table border="0" cellpadding="0"
																											cellspacing="1" width="100%">
																											<tbody>
																												<tr align="right" bgcolor="#B1DE9B">
																													<td height="30">
																														<table border="0" cellpadding="0"
																															cellspacing="0" width="90%">
																															<tbody>
																																<tr>
																																	<td align="center" width="15%">
																																		<b style="color: #274401">第<c:if test="${yxzyxh_index==1}">一</c:if>
																																					<c:if test="${yxzyxh_index==2}">二</c:if>
																																					<c:if test="${yxzyxh_index==3}">三</c:if><c:if test="${yxzyxh_index==4}">四</c:if><c:if test="${yxzyxh_index==5}">五</c:if><c:if test="${yxzyxh_index==6}">六</c:if>志愿</b>
																																	</td>
																																	<td style="padding-right: 5px;"
																																		align="right" width="25%"></td>
																																	<td style="padding-right: 5px;"
																																		align="right" width="60%">
																																		<img src="<%=path%>/images/mn_15.gif"
																																			style="cursor: pointer;"
																																			onclick="openDialog(<c:out value='${pc_index}'/><c:out value='${yxzyxh_index}'/>0);"
																																			border="0" height="19" width="110">
																																		<img src="<%=path%>/images/mn_20.gif" 	border="0" height="19" width="86">
																																		<img src="<%=path%>/images/mn_21.gif" 	border="0" height="19" width="86">
																																	</td>
																																</tr>
																															</tbody>
																														</table>
																													</td>
																												</tr>
																											</tbody>
																										</table>
																									</c:if>

																									<!--  志愿 结束 -->

																								</c:forEach>
																								<!-- 院校循环 -->
																							</td>
																						</tr>
																					</tbody>
																				</table>
																			</td>
																		</tr>
																	</tbody>
																</table>
																<!-- 批次 结束 -->
															</c:forEach>
															<!-- 批次循环 -->


														</td>
													</tr>
												</tbody>
											</table>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			</table>
			<jsp:include page="/foot.jsp" />
		</center>


	</body>
</html>